package request

type AlibabaIdleApprizeOrderFulfillmentRequest struct {
	/*
	   deal：服务商收取费用、refund：退款给付款方     */
	Action *string `json:"action" required:"true" `
	/*
	   天猫服务工单Id     */
	WorkCardId *int64 `json:"work_card_id" required:"true" `
}

func (s *AlibabaIdleApprizeOrderFulfillmentRequest) SetAction(v string) *AlibabaIdleApprizeOrderFulfillmentRequest {
	s.Action = &v
	return s
}
func (s *AlibabaIdleApprizeOrderFulfillmentRequest) SetWorkCardId(v int64) *AlibabaIdleApprizeOrderFulfillmentRequest {
	s.WorkCardId = &v
	return s
}

func (req *AlibabaIdleApprizeOrderFulfillmentRequest) ToMap() map[string]interface{} {
	paramMap := make(map[string]interface{})
	if req.Action != nil {
		paramMap["action"] = *req.Action
	}
	if req.WorkCardId != nil {
		paramMap["work_card_id"] = *req.WorkCardId
	}
	return paramMap
}

func (req *AlibabaIdleApprizeOrderFulfillmentRequest) ToFileMap() map[string]interface{} {
	fileMap := make(map[string]interface{})
	return fileMap
}
